<?php 
$theme_path		= $data['template_path'];
$baseUrl		= $data['baseUrl'];
$baseUrlSave	= $data['baseUrlSave'];
$sys_page		= $data['sys_page'];
$engineTemplate = $data['engineTemplate'];
$header_title	= $data['header_title'];
$header_keyword	= $data['header_keyword'];
$header_desc	= $data['header_desc'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php echo $header_keyword?>" />
<meta name="description" content="<?php echo $header_desc?>" />
<title><?php echo $header_title?></title>
<link rel="stylesheet" href="<?php echo $theme_path;?>css/newstyle.css" type="text/css" media="all" />
<!--[if lte IE 6]><link rel="stylesheet" href="<?php echo $theme_path;?>css/ie6.css" type="text/css" media="all" /><![endif]-->

<!-- Start Slide Show-->
<link rel="stylesheet" href="<?php echo $theme_path;?>css/reset.css" type="text/css" media="screen">
<link rel="stylesheet" href="<?php echo $theme_path;?>css/tm-slider.css" type="text/css" media="screen">
<link rel="stylesheet" href="<?php echo $theme_path;?>css/style-newsticker.css" type="text/css" media="screen" />
    <link type="text/css" href="<?php echo $theme_path;?>css/jquery-ui-1.8.18.custom.css" rel="stylesheet" />	
    <link rel="stylesheet" href="<?php echo $theme_path;?>css/agoestri-menu.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $theme_path;?>css/style.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $theme_path;?>css/jquery.fancybox-1.3.4.css" media="screen" />
    <!--<link rel="stylesheet" type="text/css" href="<?php echo $theme_path;?>css/preview.css"/>
	<link rel="stylesheet" type="text/css" href="<?php echo $theme_path;?>css/wt-lightbox.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo $theme_path;?>css/wt-scroller.css"/>    -->
<!-- End Slide Show-->

<!-- JS -->
<!--<script src="<?php echo $theme_path;?>js/jquery-1.4.2.js" type="text/javascript"></script>-->
    <script src="<?php echo $theme_path;?>js/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="<?php echo $theme_path;?>js/jquery.slideshow.js" type="text/javascript"></script> 
    <script src="<?php echo $theme_path;?>js/script.js" type="text/javascript"></script>	
    <script src="<?php echo $theme_path;?>js/dropdown.js" type="text/javascript"></script>
    <script src="<?php echo $theme_path;?>js/custom-animation.js" type="text/javascript"></script>
    <script src="<?php echo $theme_path;?>js/agoestri-menu.js" type="text/javascript"></script> 
    <script src="<?php echo $theme_path;?>js/jquery.blend-min.js"></script>
    <script type="text/javascript" src="<?php echo $theme_path;?>js/jquery.fancybox-1.3.4.pack.js"></script>
    <script type="text/javascript" src="<?php echo $theme_path;?>js/fancy.script.js"></script>

	<link rel="stylesheet" href="<?php echo $engineTemplate?>js/ui/themes/base/jquery.ui.all.css">
	<script src="<?php echo $engineTemplate?>js/ui/jquery.ui.core.js"></script>
	<script src="<?php echo $engineTemplate?>js/ui/jquery.ui.widget.js"></script>
    <script src="<?php echo $engineTemplate?>js/ui/jquery.ui.datepicker.js"></script>
        
    <!--<script type="text/javascript" src="<?php echo $theme_path;?>js/jquery.wt-lightbox.min.js"></script>
    <script type="text/javascript" src="<?php echo $theme_path;?>js/jquery.wt-scroller.min.js"></script>
    <script type="text/javascript" src="<?php echo $theme_path;?>js/preview.js"></script>-->  
    <!-- End JS -->

<script src="<?php echo $theme_path;?>js/jcarousellite_1.0.1c4.js" type="text/javascript"></script>
<!-- 
<script type="text/javascript" src="<?php echo $theme_path;?>js/jquery-ui-1.8.18.custom.min.js"></script>
-->
	<script type="text/javascript">
	$(function()
            {
               	if("<?php echo $data['msg_login'];?>"!="")
            	{
                	alert("<?php echo $data['msg_login'];?>");
                }
           	});
	$(function(){
		$("ul.menu").agoestri_menu({
			currentId:0
		});
		}
	);
	</script>

    <script type="text/javascript">
    $(function() {

$(".newsticker").jCarouselLite({
            vertical: true,
hoverPause:true,
	btnPrev: ".previous",
	btnNext: ".next",
	visible: 2,
	auto:3000,
	speed:500
});
});
	</script>


    <script type="text/javascript">
	$(function() {
		$(".newsticker-ino").jCarouselLite({
	vertical: true,
	hoverPause:true,
	btnPrev: ".previous",
	btnNext: ".next",
	visible: 2,
            auto:3000,
	speed:800
	});
	});
	</script>

	<script type="text/javascript">
	$(function(){

		// Accordion
	$("#accordion").accordion({
	header: "h3" });

	//hover states on the static widgets
	$('#dialog_link, ul#icons li').hover(
	function() {
	$(this).addClass('ui-state-hover');
},
	function() {
		$(this).removeClass('ui-state-hover');
	}
			);

	});
	</script>

	<script>
		$(document).ready(function(){
		$("#support-online a").blend();
		});
		</script>

		<script type="text/javascript">
		$(function() {
		var settings = {
containerResizeSpeed: 350
		};
		$('#gallery a').lightBox(settings);
	});
		</script>

		</head>

<?php
if ($sys_page=="main")
{
//	$this->view($data['template_view']."main_start", $data);
//	$this->view($data['template_view']."main_login", $data);
//	$this->view($data['template_view']."main_menu", $data);

	
	$this->view($data['template_view']."detail_start", $data);
	$this->view($data['template_view']."detail_menu", $data);
	
}
elseif($sys_page=="detail")
{
	$this->view($data['template_view']."detail_start", $data);
	$this->view($data['template_view']."detail_menu", $data);
}
?>